package com.aaaa.bbbb.controller;

import com.aaaa.bbbb.domain.Users;
import com.aaaa.bbbb.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2020/10/20.
 */

@RestController
@RequestMapping("/sso/user")
public class UserController {


    @Autowired
    private UserService userService;


    @RequestMapping(value = "getRemoteUser",method = RequestMethod.GET)
    public String getRemoteUser(){

        return userService.login(new Users("jack","123")).toString();
    }
}
